﻿using IMES.Common.Dtos;
using MediatR;

namespace Darius.API.Application.Commands
{
    public class PermissionsCreateCommand:IRequest<Result>
    {
        public int PermissionsId { get; set; }
        public string PermissionsName { get; set; }
        /// <summary>
        /// 链接
        /// </summary> 
        public string? URL { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public int PerantId { get; set; }
        /// <summary>
        /// 是否可以查看 (可空)
        /// </summary>
        public bool? CanView { get; set; } = true;

        /// <summary>
        /// 是否可以添加 (可空)
        /// </summary>
        public bool? CanAdd { get; set; } = true;

        /// <summary>
        /// 是否可以编辑 (可空)
        /// </summary>
        public bool? CanEdit { get; set; } = true;

        /// <summary>
        /// 是否可以删除 (可空)
        /// </summary>
        public bool? CanDelete { get; set; } = true;
    }
}
